package top.hekun.study.gradle.plugin;

import org.gradle.api.Plugin;
import org.gradle.api.Project;
import top.hekun.study.gradle.task.MyTask;

/**
 * top.hekun.study.gradle.plugin.properties
 * <p>
 * implementation-class=top.hekun.study.gradle.plugin.MyPlugin
 *
 * @Author: 贺坤
 * @Date: 2023/6/26 16:00
 */
public class MyPlugin implements Plugin<Project> {

    @Override
    public void apply(Project project) {
        MyTask task = project.getTasks().create("模块中任务", MyTask.class);
        task.setDescription("初始化SakuraPlugin");
        task.dependsOn("描述啊啊啊");
        task.setGroup("a-自定义插件");
        System.out.println("初始化 自定义插件完成!! ");
    }
}
